package com.iris.live.services.data.repositories;

import com.iris.live.services.data.models.Lsh套餐适用区域Model;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by ThinkPad on 2016/9/18.
 */
@Transactional
public interface Lsh套餐适用区域Repository extends JpaRepository<Lsh套餐适用区域Model, Integer>, JpaSpecificationExecutor<Lsh套餐适用区域Model> {
    @Query("select a from Lsh套餐适用区域Model a where a.套餐编号=?1")
    public List<Lsh套餐适用区域Model> findAreaRecordByComboId(int id);
}
